<template>
  <div id="focusPerson">
    <p class="title">关注的人</p>
    <ul class="focusList">
      <li v-for="(item, idx) in focusData" :key="idx">
        <img :src="item.img" alt="" />
        <p>{{ item.name }}</p>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "focusPerson",
  data() {
    return {
      focusData: [
        {
          img: require("../assets/img/focusImg.png"),
          name: "怪人",
        },
        {
          img: require("../assets/img/focusImg.png"),
          name: "我就是桃桃桃子呀",
        },
        {
          img: require("../assets/img/focusImg.png"),
          name: "书法致敬者",
        },
        {
          img: require("../assets/img/focusImg.png"),
          name: "孟老师",
        },
        {
          img: require("../assets/img/focusImg.png"),
          name: "陶匠",
        },
      ],
    };
  },
};
</script>
<style lang="less" scoped>
#focusPerson {
  padding-top: 0.2rem;
  padding-left: 0.16rem;
  .title {
    font-size: 0.14rem;
  }
  .focusList {
    display: flex;
    margin-top: 0.08rem;
    overflow-x: auto;
    flex-flow: row nowrap;
    li {
      display: flex;
      flex-direction: column;
      width: 0.66rem;
      font-size: 0.1rem;
      margin-right: 0.26rem;
      img {
        width: 0.48rem;
        height: 0.48rem;
        margin: 0 auto;
      }
      p {
        margin-top: 0.02rem;
        height: 0.14rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
      }
    }
  }
  .focusList::-webkit-scrollbar {
      display: none;
    }
}
</style>